﻿@model EM.OA.Portal.Models.MeetingRoomModels
@{
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<script type="text/javascript" src="~/Scripts/page/Meeting/MeetingRoom.js"></script>
<div>
    @*list*@
    <table id="list" class="easyui-datagrid" toolbar="#toolbar">
    </table>
    <div id="toolbar">
        <a href="#" class="easyui-linkbutton" iconcls="icon-add" plain="true" onclick="add()">增加</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" onclick="edit()">修改</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-remove" plain="true" onclick="del()">删除</a>
        @*<div id="tb" style="padding: 3px">
            <span>@Html.LabelFor(m => m.WorkPlanName)</span>
            <input id="WorkPlanName" style="line-height: 26px; border: 1px solid #ccc">
            <span>@Html.LabelFor(m => m.WorkPlanType)</span>
            <input id="WorkPlanType" style="line-height: 26px; border: 1px solid #ccc">
            <a href="#" class="easyui-linkbutton" plain="true" onclick="doSearch()">Search</a>
        </div>*@
    </div>

    @*Detail*@
    <div id="dlg" class="easyui-dialog" style="width: 350px; height: 360px; padding: 10px 20px"
        closed="true" buttons="#dlg-buttons" modal="true" resizable="true">
        <div id="dlg-buttons">
            <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="save()">保存</a>
            <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取消</a>
        </div>
        <form id="fm" method="post">
            @Html.HiddenFor(m => m.MeetingRoomID)
            <table>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.MeetingRoomName)
                    </td>
                    <td>
                        <input name="MeetingRoomName" id="MeetingRoomName" class="easyui-validatebox" data-options="required:true,validType:'length[1,200]'">
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.Address)
                    </td>
                    <td>

                        <input name="Address" id="Address" class="easyui-validatebox" data-options="required:true,validType:'length[1,500]'">
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.Area)
                    </td>
                    <td>
                        <input name="Area" id="Area" class="easyui-numberbox" data-options="required:true,min:0,max:100">平米
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.TelephoneNumber)
                    </td>
                    <td>
                        <input name="TelephoneNumber" id="TelephoneNumber" class="easyui-validatebox" data-options="required:true,validType:'length[1,100]'">
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.Capacity)
                    </td>
                    <td>
                        <input name="Capacity" id="Capacity" class="easyui-numberbox" data-options="min:0,max:100" />
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.HaveTelephone, new { @class = "checkbox" })
                    </td>
                    <td>
                        @Html.CheckBoxFor(m => m.HaveTelephone)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.HaveInternet, new { @class = "checkbox" })

                    </td>
                    <td>
                        @Html.CheckBoxFor(m => m.HaveInternet)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.HaveProjector, new { @class = "checkbox" })
                    </td>
                    <td>
                        @Html.CheckBoxFor(m => m.HaveProjector)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.HaveVideoMeeting, new { @class = "checkbox" })
                    </td>
                    <td>

                        @Html.CheckBoxFor(m => m.HaveVideoMeeting)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.Remarks)

                    </td>
                    <td>
                        <input name="Remarks" id="Remarks" class="easyui-validatebox" data-options="validType:'length[1,1000]'">
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.Status)
                    </td>
                    <td>
                        <select id="Status" name="Status" class="easyui-combobox" data-options="required:true,panelHeight:'auto'">
                        <option value="0" >停用</option>
                        <option value="1" selected="selected">正常</option>
                        </select>
                    </td>
                </tr>
            </table>
        </form>
    </div>

</div>
